/**
 * @Author: ls <ls-mac>
 * @Date:   2019-08-13 13:16:47
 * @Last modified by:   ls-mac
 * @Last modified time: 2019-08-25 00:22:43
 */
import request from '../utils/reqaxios';

// /employee/add 员工新增
export async function employeeAdd(params) {
  return request({
    url: '/employee/add',
    method: 'post',
    data: params,
  });
}

// /employee/detail 员工详情
export async function employeeDetail(params) {
  return request({
    url: '/employee/detail',
    method: 'post',
    data: params,
  });
}

// /employee/edit 员工修改
export async function employeeEdit(params) {
  return request({
    url: '/employee/edit',
    method: 'post',
    data: params,
  });
}
// /employee/import 导入员工
export async function employeeImport(params) {
  return request({
    url: '/employee/import',
    method: 'post',
    data: params,
  });
}
// /employee/page 员工分页列表
export async function employeePage(params) {
  return request({
    url: '/employee/page',
    method: 'post',
    data: params,
  });
}
// /employee/page 员工列表
export async function employeeList(params) {
  return request({
    url: '/employee/list',
    method: 'post',
    data: params,
  });
}
